function getBoundingClientRect(val) {
  let el = null
  typeof val === 'string' ? (el = document.getElementById(val)) : (el = val)
  return el.getBoundingClientRect()
}

export { getBoundingClientRect }
